/* floats.c -- 格式化打印浮点数 */

#include <stdio.h>

int main(void)
{
  const double PI = 3.14159;

  printf("*%f*\n", PI);
  printf("*%e*\n", PI);
  printf("*%1.2f*\n", PI);
  printf("*%10.4f*\n", PI);
  printf("*%10.4E*\n", PI);
  printf("*%+f*\n", PI);
  printf("*%+010.3f*\n", PI);

  return 0;
}